﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using DiscMaster.Web.Models.DataAnnotations;

namespace DiscMaster.Web.Models
{
    [MetadataType(typeof(Hole_MetaData))]
    public partial class Hole
    {
    }
    internal class Hole_MetaData
    {
        [ScaffoldColumn(false)]
        public System.Guid courseid { get; set; }

        [ScaffoldColumn(false)]
        public System.Guid layoutid { get; set; }

        [ScaffoldColumn(false)]
        public System.Guid holeid { get; set; }

        [Range(0, 99)]
        [DisplayName("Number")]
        public int number { get; set; }

        [Range(0, 100)]
        [DisplayName("Difficulty")]
        public int difficulty { get; set; }

        [Range(0, 1000)]
        [DisplayName("Length")]
        public int length { get; set; }

        [Range(0, 10)]
        [MaxLength(Length=2, ErrorMessage="Range must be between 1-10")]
        [DisplayName("Par")]
        public int par { get; set; }
    }
}
